/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package snmpapplication.utils;

/**
 *
 * @author APetcu
 */
public class InterfaceType {

    public static String determineInterfaceType(Integer t) {

        String ret = "";

        switch (t) {
            case 1:
                ret = "other";
                break;
            case 2:
                ret = "regular1822";
                break;
            case 3:
                ret = "hdh1822";
                break;
            case 4:
                ret = "ddn-x25";
                break;
            case 5:
                ret = "rfc877-x25";
                break;
            case 6:
                ret = "ethernet-csmacd";
                break;
            case 7:
                ret = "iso88023-csmacd";
                break;
            case 8:
                ret = "iso88024-tokenBus";
                break;
            case 9:
                ret = "iso88025-tokenRing";
                break;
            case 10:
                ret = "iso88026-man";
                break;
            case 11:
                ret = "starLan";
                break;
            case 12:
                ret = "proteon-10Mbit";
                break;
            case 13:
                ret = "proteon-80Mbit";
                break;
            case 14:
                ret = "hyperchannel";
                break;
            case 15:
                ret = "fddi";
                break;
            case 16:
                ret = "lapb";
                break;
            case 17:
                ret = "sdlc";
                break;
            case 18:
                ret = "ds1";
                break;
            case 19:
                ret = "e1";
                break;
            case 20:
                ret = "basicISDN";
                break;
            case 21:
                ret = "basicISDN";
                break;
            case 22:
                ret = "propPointToPointSerial";
                break;
            case 23:
                ret = "ppp";
                break;
            case 24:
                ret = "softwareLoopback";
                break;
            case 25:
                ret = "eon";
                break;
            case 26:
                ret = "eon";
                break;
            case 27:
                ret = "nsip";
                break;
            case 28:
                ret = "slip";
                break;
            case 29:
                ret = "ultra";
                break;
            case 30:
                ret = "ds3";
                break;
            case 31:
                ret = "sip";
                break;
            case 32:
                ret = "frame-relay";
                break;
            default:
                ret = "other";
                break;
        }

        return ret;
    }
}
